|
|
|
|
|
|
|
Figure 13.25
An object translated to the origin, scaled, and then
translated back to its original position. |
|
|
|
|
|
|
|
|
Reflection across an Arbitrary Plane |
|
|
|
|
|
|
|
|
Reflecting an object across the X-Y, Y-Z, or X-Z planes is easy. To reflect an object across an arbitrary plane, first translate and rotate the object until the plane of reflection coincides with the X-Y, Y-Z, or X-Z plane. Then you can perform the simpler reflection and use the inverses of the initial rotations and translation to move the object back to its original position. While this operation is easy to describe, it is fairly complicated to perform. |
|
|
|
|
|
|
|
|
To reflect objects across a plane, you first need to be able to describe the plane of reflection. One simple way to describe a plane is by giving a point on the plane and a vector that is perpendicular to the plane. This kind of vector is called a normal vector for the plane. Figure 13.26 shows a plane that passes through the point (p1, p2, p3) and has normal vector <n1, n2, n3>. |
|
|
|
|
|
|
|
|
Figure 13.26
A plane passing through (p1, p2, p3) with normal vector <n1, n2, n3> |
|
|
|
|
|